<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
</head>
<body>
<script src="https://cdn.bootcss.com/vue/2.3.4/vue.js"></script>
<div id="root">
	<elem></elem>
</div>
<script>
	Vue.component('elem',{
		render: function(createElement) {
	        var self = this;
	        // return createElement('div', '文本');//使用字符串生成文本节点
	        return createElement('div', [//由createElement函数构建而成的数组
	          createElement('h1', '主标'),//createElement函数返回VNode对象
	          createElement('h2', '副标')
	        ]);
        }
	})
	var vm = new Vue({
		el : '#root',
	})
</script>	
</body>
</html>